<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCompanyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('company', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('公司名字')->nullable();
            $table->string('address')->comment('地址')->nullable();
            $table->string('type')->comment('企业类型')->nullable();
            $table->tinyInteger('is_auth')->default('1')->comment('是否认真')->nullable();
            $table->tinyInteger('is_zhidai')->default('1')->comment('是否直达')->nullable();
            $table->tinyInteger('is_discount')->default('1')->comment('是否优惠')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('company');
    }
}
